@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
@import "./media.scss";

html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
     ========================================================================== */

/**
   * Remove the margin in all browsers.
   */

body {
  margin: 0;
}

/**
   * Render the `main` element consistently in IE.
   */

main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */

/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */

hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
     ========================================================================== */

/**
   * Remove the gray background on active links in IE 10.
   */

a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */

abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */

b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
   * Add the correct font size in all browsers.
   */

small {
  font-size: 80%;
}

/**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
     ========================================================================== */

/**
   * Remove the border on images inside links in IE 10.
   */

img {
  border-style: none;
}

/* Forms
     ========================================================================== */

/**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
   * Correct the inability to style clickable types in iOS and Safari.
   */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
   * Remove the inner border and padding in Firefox.
   */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */

legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */

progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */

textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */

[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
     ========================================================================== */

/*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */

details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */

summary {
  display: list-item;
}

/* Misc
     ========================================================================== */

/**
   * Add the correct display in IE 10+.
   */

template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */

[hidden] {
  display: none;
}

html,
body,
div,
ul,
ol,
dl,
li,
dt,
dd,
p,
blockquote,
pre,
form,
fieldset,
table,
th,
td {
  border: none;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 16px;
  margin: 0px;
  padding: 0px;
}

html,
body {
  height: 100%;
  width: 100%;
}

address,
caption,
cite,
code,
th,
var {
  font-style: normal;
  font-weight: normal;
}

a {
  text-decoration: none;
}

input::-ms-clear {
  display: none;
}

input::-ms-reveal {
  display: none;
}

input {
  -webkit-appearance: none;
  margin: 0;
  outline: none;
  padding: 0;
}

input::-webkit-input-placeholder {
  color: #ccc;
}

input::-ms-input-placeholder {
  color: #ccc;
}

input::-moz-placeholder {
  color: #ccc;
}

input[type="submit"],
input[type="button"] {
  cursor: pointer;
}

button[disabled],
input[disabled] {
  cursor: default;
}

img {
  border: none;
}

ul,
ol,
li {
  list-style-type: none;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  cursor: pointer;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #606266;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "\5fae\8f6f\96c5\9ed1", Arial, sans-serif;
}

label {
  font-weight: 500;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
  background-color: #F5FAFD;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 15px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.bg-white {
  background-color: #FFFFFF;
}

.line {
  height: 18px;
  width: 5px;
  background: #277fd6;
}

/* 主布局样式
------------------------------- */
.layout-container {
  width: 100% !important;
  height: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.5);
  overflow-y: auto;

  .layout-aside {
    background: rgba(235, 244, 250, 1);
    box-shadow: 0px 0px 23px 3px rgb(186 204 218 / 25%);
    border-radius: 20px;
    height: 98%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;

    .el-scrollbar__view {
      overflow: hidden;
    }
  }

  .layout-header {
    padding: 0 !important;
  }

  .layout-main {
    padding: 0 !important;
    // overflow: hidden;
    width: 99%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0px 0px 23px 3px rgb(186 204 218 / 25%);
    border-radius: 15px;
    margin-right: 15px;
  }

  .el-scrollbar {
    width: 100%;
  }

  .layout-view-bg-white {
    background: white;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid #ebeef5;
  }

  .layout-el-aside-br-color {
    border-right: 1px solid rgb(238, 238, 238);
  }

  .layout-aside-width-default {
    width: 200px !important;
    transition: width 0.3s ease;
    margin: 10px;
    padding: 0px 10px;
  }

  .layout-aside-width64 {
    width: 64px !important;
    transition: width 0.3s ease;
  }

  .layout-aside-width1 {
    width: 1px !important;
    transition: width 0.3s ease;
  }

  .layout-scrollbar {
    @extend .el-scrollbar;
    padding: 0px 10px 10px 10px;
  }

  .layout-main-height-50 {
    // height: calc(100vh - 50px);
    height: 100%;
  }

  .layout-columns-warp {
    flex: 1;
    display: flex;
    overflow: hidden;
  }

  .layout-hide {
    display: none;
  }

  .main-content {
    height: 100%;
    padding-bottom: 1%;
  }
}

/* 全局样式
------------------------------- */
.layout-breadcrumb-seting {
  .el-drawer__header {
    padding: 0 15px !important;
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgb(230, 230, 230);
  }

  .el-divider {
    background-color: rgb(230, 230, 230);
  }
}

/* flex 弹性布局
------------------------------- */
.flex {
  display: flex;
}

.display-inline {
  display: inline-block;
}

.display-block {
  display: block;
}

.flex-column {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-auto {
  flex: 1;
}

.flex-none {
  flex: none;
}

.flex-wrap {
  flex-flow: wrap;
}

.align-center {
  align-items: center;
}

.align-self-center {
  align-self: center;
}

.align-right {
  align-items: flex-end;
}

.align-left {
  align-items: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-center {
  justify-content: center;
}

.justify-space-between {
  justify-content: space-between;
}

.justify-space-around {
  justify-content: space-around;
}

.flex-center {
  @extend .flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.flex-margin {
  margin: auto;
}

.flex-warp {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  margin: 0 -5px;

  .flex-warp-item {
    padding: 5px;

    .flex-warp-item-box {
      width: 100%;
      height: 100%;
    }
  }
}

.cursor-p {
  cursor: pointer;
}

/* 宽高 100%
------------------------------- */
.w100 {
  width: 100% !important;
}

.h100 {
  height: 100% !important;
}

.vh100 {
  height: 100vh !important;
}

.max100vh {
  max-height: 100vh !important;
}

.min100vh {
  min-height: 100vh !important;
}

.header-bg {
  background: #e9f0f7 !important;
}

.text-underline {
  text-decoration: underline;
}

.text-border {
  border-bottom: 2px solid #215195;
  box-sizing: border-box;
}

.border-box {
  box-sizing: border-box;
}

/* 溢出省略号
------------------------------- */
.one-text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.two-text-overflow {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.overflow {
  overflow: hidden !important;
}

.ml-50 {
  margin-left: -50px;
}

.ml-80 {
  margin-left: -80px;
}

.mt0 {
  margin-top: 0px;
}

.width0 {
  width:0px;
}

.width300 {
  width: 300px !important;
}

.width400 {
  width: 400px !important;
}

.width650 {
  width: 650px !important;
}

.bg-strip {
  background-color: #f7fafb !important;
}

@for $i from 10 through 800 {
  .width#{$i} {
    width: #{$i}px !important;
  }
}

@for $i from 1 through 100 {
  .width#{$i}p {
    width: $i * 1% !important;
  }
}

@for $i from 1 through 100 {
  .height#{$i}p {
    height: $i * 1% !important;
  }
}

@for $i from 10 through 800 {
  .height#{$i} {
    height: #{$i}px !important;
  }
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 64 {
  .font#{$i} {
    font-size: #{$i}px !important;
  }
}

@for $i from 10 through 300 {
  .line-height-#{$i} {
    line-height: #{$i}px !important;
  }
}

/* border-radius全局样式
------------------------------- */
@for $i from 5 through 30 {
  .border-radius-#{$i} {
    border-radius: #{$i}px !important;
  }
}

@for $i from 0 through 30 {
  .btrr#{$i} {
    border-top-right-radius: #{$i}px !important;
  }
}

@for $i from 0 through 30 {
  .btlr#{$i} {
    border-top-left-radius: #{$i}px !important;
  }
}

@for $i from 0 through 30 {
  .bbrr#{$i} {
    border-bottom-right-radius: #{$i}px !important;
  }
}

@for $i from 0 through 30 {
  .bblr#{$i} {
    border-bottom-left-radius: #{$i}px !important;
  }
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from 0 through 100 {
  .mt#{$i} {
    margin-top: #{$i}px !important;
  }

  .mr#{$i} {
    margin-right: #{$i}px !important;
  }

  .mb#{$i} {
    margin-bottom: #{$i}px !important;
  }

  .ml#{$i} {
    margin-left: #{$i}px !important;
  }

  .pt#{$i} {
    padding-top: #{$i}px !important;
  }

  .pr#{$i} {
    padding-right: #{$i}px !important;
  }

  .pb#{$i} {
    padding-bottom: #{$i}px !important;
  }

  .pl#{$i} {
    padding-left: #{$i}px !important;
  }
}

.vis-h {
  visibility: hidden;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.fw500 {
  font-weight: 500;
}

.fw600 {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.fs0 {
  flex-shrink: 0;
}

.text-left {
  text-align: left;
}

.primary-color {
  color: #4d70ff;
}

.warning-color {
  color: #feba07;
}

.danger-color {
  color: #ff4949;
}

.timeline {
  padding: 10px 5px;

  overflow-y: auto;

  .time {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 18px;

    .text {
      color: #7b889b;
      line-height: 20px;
    }

    .pattype {
      background: linear-gradient(90deg, #277fd6 0%, #3f8fdf 100%);
      box-shadow: 0px 5px 10px 0px rgba(46, 93, 159, 0.25);
      border-radius: 6px;
      color: #ffffff;
      font-size: 12px;
      margin-left: 10px;
      width: 80px;
      text-align: center;
    }
  }

  .info {
    margin-top: 3px;

    span {
      font-size: 15px;
      line-height: 26px;
    }

    .label {
      color: #277fd6;
    }

    .detail {
      font-size: 15px;
      color: #7b889b;
    }
  }

  .detail-btn {
    // background: linear-gradient(135deg, #ff883f 0%, #ffa46d 100%);
    // box-shadow: 0px 5px 10px 0px rgba(255, 111, 24, 0.25);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    width: 60px;
  }

  .detail-btn.active {
    background: linear-gradient(135deg, #ff883f 0%, #ffa46d 100%);
    box-shadow: 0px 5px 10px 0px rgba(255, 111, 24, 0.25);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    width: 60px;
  }
}

.el-icon-my-time {
  background: url("../assets/time.png") center no-repeat;
  font-size: 16px;
  background-size: cover;
}

.el-icon-my-time:before {
  content: "替";
  font-size: 16px;
  visibility: hidden;
}

.primary-header {
  background: #fff !important;
  padding: 8px 20px;
  border-bottom: 2px solid #f5f5f5;
  height: 50px;
  border-top-left-radius:15px;
  border-top-right-radius:15px;
  line-height:50px;
  .line {
    height: 22px;
    width: 5px;
    background: #277fd6;
  }
}

.table-content{
  padding: 10px;
}

.app-box {
  .app-item{
    width:200px;
    height:50px;

  }
}

.app-box {
        padding: 10px 5px;
        .title {
            font-size: 20px;
            font-weight: 600;
            color: rgba($color: #000000, $alpha: 0.65);
        }

        img {
            width: 50px;
            height: 50px;
        }

        .card-box {
            background: #fff;
            border-radius: 10px;
            margin: 20px 20px 10px 0px;
            padding: 10px 10px;
            position: relative;
            top: 0;
            min-height:70px;
            cursor:pointer;
            -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .2);
            box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .2);
            right: 0;
            flex: 1;
            transition: 0.2s all ease;
            text-align:center;

            .title {
                font-size: 17px;
                font-weight: bold;
                color: #263238;
            }

            .label {
                font-size: 15px;
                color: #97A2B0;
            }
            &.active {
                background: #277fd6;
                .title {
                  font-size: 17px;
                  font-weight: bold;
                  color: #fff;
              }
            }

            // &:hover {
            //     top: -3px;
            //     right: -1px;
            //     -webkit-box-shadow: 0 7px 15px 0 rgb(0 0 0 / 20%);
            //     box-shadow: 0 7px 15px 0 rgb(0 0 0 / 20%);
            //     cursor: pointer;
            // }
        }
    }

    .bb {
      border-bottom:2px solid #f0f0f0;
    }

    .fixed-btn {
      position: fixed;
      right: 20px;
      z-index: 9999;
    }
    .bg-white {
      background-color: #fff;
    }
